package cn.tom.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Order {
    private Integer ordid;
    private Integer uid; //用户id
    private Double amount= 0.0d; //应付金额
    private Integer payStatus= 0;  //付款 0未付，1已付
    private Date tpay =null; //付款时间
    private Integer shipStatus= 0;  //发货 0未发货 1已经发货 2已收货
    private String shipno= ""; //发货单号 日期+订单主键
    private String ship2name; //收件人姓名
    private String ship2phone= ""; //收件人电话
    private String ship2addr= ""; //收件人地址
    private String shipper; //承运人
    private Date tship; //发货时间
    private Date tsign; //签收时间
    private Date tcreate = new Date(); //创建订单时间
    private List<OrdItem> items = new ArrayList();;

    public Integer getOrdid() {
        return ordid;
    }

    public void setOrdid(Integer ordid) {
        this.ordid = ordid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Date getTpay() {
        return tpay;
    }

    public void setTpay(Date tpay) {
        this.tpay = tpay;
    }

    public Integer getShipStatus() {
        return shipStatus;
    }

    public void setShipStatus(Integer shipStatus) {
        this.shipStatus = shipStatus;
    }

    public String getShipno() {
        return shipno;
    }

    public void setShipno(String shipno) {
        this.shipno = shipno;
    }

    public String getShip2name() {
        return ship2name;
    }

    public void setShip2name(String ship2name) {
        this.ship2name = ship2name;
    }

    public String getShip2phone() {
        return ship2phone;
    }

    public void setShip2phone(String ship2phone) {
        this.ship2phone = ship2phone;
    }

    public String getShip2addr() {
        return ship2addr;
    }

    public void setShip2addr(String ship2addr) {
        this.ship2addr = ship2addr;
    }

    public String getShipper() {
        return shipper;
    }

    public void setShipper(String shipper) {
        this.shipper = shipper;
    }

    public Date getTship() {
        return tship;
    }

    public void setTship(Date tship) {
        this.tship = tship;
    }

    public Date getTsign() {
        return tsign;
    }

    public void setTsign(Date tsign) {
        this.tsign = tsign;
    }

    public Date getTcreate() {
        return tcreate;
    }

    public void setTcreate(Date tcreate) {
        this.tcreate = tcreate;
    }

    public List<OrdItem> getItems() {
        return items;
    }

    public void setItems(List<OrdItem> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "Order{" +
                "ordid=" + ordid +
                ", uid=" + uid +
                ", amount=" + amount +
                ", payStatus=" + payStatus +
                ", tpay=" + tpay +
                ", shipStatus=" + shipStatus +
                ", shipno='" + shipno + '\'' +
                ", ship2name='" + ship2name + '\'' +
                ", ship2phone='" + ship2phone + '\'' +
                ", ship2addr='" + ship2addr + '\'' +
                ", shipper='" + shipper + '\'' +
                ", tship=" + tship +
                ", tsign=" + tsign +
                ", tcreate=" + tcreate +
                ", items=" + items +
                '}';
    }
}
